import { createApp } from 'vue'
import App from './App.vue'

import '@li-tao/theme-chalk/src/index.scss'

import {LTIcon, LTIconLoading} from "@li-tao/components/icon"
import LTButton from '@li-tao/components/button/index.ts'
import LTDrawer from "@li-tao/components/drawer/index.ts"
import LTDialog from '@li-tao/components/dialog/index.ts'
import LTTable from '@li-tao/components/table/index.ts'
import LTInput from '@li-tao/components/input/index.ts'
import { LTFormItem, LTForm } from '@li-tao/components/form/index.ts'
import LTMessage from '@li-tao/components/message/index.ts'

const plugins = [
  LTIconLoading,
  LTButton,
  LTIcon,
  LTDrawer,
  LTDialog,
  LTTable,
  LTInput,
  LTFormItem,
  LTForm,
  LTMessage
]

const app = createApp(App)

plugins.forEach(plugin => {
  app.use(plugin)
})

app.mount('#app')
